//app.js
App({
  onLaunch: function () {
  },
  getuserInfo:function () {
    wx.getUserProfile({
      desc: "获取你的昵称、头像、地区及性别",
      success:(res)=>{
          console.log(res.userInfo);
          wx.setStorageSync('userInfo', res.userInfo)
      }
    })
  },
  globalData: {
    userInfo: {
      nickName: 'Hi,游客',
      userName: '点击去登录',
      avatarUrl: 'https://platform-wxmall.oss-cn-beijing.aliyuncs.com/upload/20180727/150547696d798c.png'
    }
  },
  order_list_id:0
})